import { createRouter, createWebHashHistory } from 'vue-router';
import each from "./each";
import routes from "./routes";

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

//加载路由守卫前置守卫
router.beforeEach(each.beforeEach);

//加载路由后置守卫
router.afterEach(each.afterEach);

export default router
